package com.atguigu.gulimall.member.vo;

import lombok.Data;

/**
 * @Description: 社交用户信息
 * @Created: with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-06-28 11:04
 **/

@Data
public class SocialUser {

    /**
     *     "access_token": "56310a891ae93588988a3c0e4e685a49",
     *     "token_type": "bearer",
     *     "expires_in": 86400,
     *     "refresh_token": "08782b4126a13a5fab5c22c78f772a88996c03c32aab13069bd7210165ebd91c",
     *     "scope": "user_info",
     *     "created_at": 1687418634
     */

    /**
     * 登陆状态识别：只要登陆就存在，会变化（有效期 1天）
     */
    private String access_token;

    private String token_type;

    /**
     * access_token的过期时间
     */
    private long expires_in;

    /**
     * 可以通过以下 refresh_token 方式重新获取 access_token（ POST请求 ）
     * https://gitee.com/oauth/token?grant_type=refresh_token&refresh_token={refresh_token}
     */
    private String refresh_token;

    /**
     * 权限
     */
    private String scope;

    /**
     * 社交账号与用户账号的关联字段，固定不变
     */
    private long created_at;

}
